<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <input type="hidden" name="update_time" value="{$row.update_time|default=''}">
        <div class="operate-bar">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>
                {:lang('common.btn_save')}
            </button>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('banner.pic')}</label>
            <div class="layui-input-block layuimini-upload">
                <input name="pic" class="layui-input layui-col-xs6" lay-verify="required"
                       placeholder="{:lang('banner.pic_placeholder')}" value="{$row.pic|default=''}">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="pic" data-upload-exts="png|jpg|jpeg|gif">
                        <i class="fa fa-upload"></i> {:lang('common.btn_upload')}</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_pic" data-upload-select="pic"><i
                            class="fa fa-list"></i> {:lang('common.btn_choose')}</a></span>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('banner.href')}</label>
            <div class="layui-input-block">
                <input type="text" name="href" class="layui-input" lay-verify="required"
                       placeholder="{:lang('common.input')}{:lang('banner.href')}" value="{$row.href|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('common.sort')}</label>
            <div class="layui-input-inline">
                <input type="text" name="sort" class="layui-input" lay-verify="onlyInteger"
                       placeholder="{:lang('common.input')}{:lang('common.sort')}" value="{$row.sort|default=''}">
            </div>
        </div>
    </form>
</div>
<script>
    layui.use(['myCommon'], function () {
        let myCommon = layui.myCommon;
        myCommon.listen();
    });
</script>
